<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="render.js"></script>
<div id="app"></div>

<script>
    //通过h函数创建一个虚拟的vnode
    const vnode = h('div',{class:"wmy"},[
        h("h2",null,"当前计数:100"),
        h("button",null,"+1")
    ]);//这个就是一个虚拟dom
    console.log(vnode)

    //通过mount函数，将vnode挂载到div#app上
    mount(vnode,document.querySelector("#app"))

</script>

</body>
</html>